package ch.bfh.java.directorysynchronizer.presentation.Frame;

import java.awt.FlowLayout;
import java.awt.Font;

import javax.swing.JPanel;

import ch.bfh.java.directorysynchronizer.presentation.items.Workbench;

public class TitelPanel extends JPanel
{

	/**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    private Workbench workbench;
    
    public TitelPanel(Workbench wb){
    	
    	this.workbench = wb;
    	
    	this.setPreferredSize(workbench.getTitelPanelDimension());    	
    	this.setLayout(new FlowLayout());
    	
    	//Design the Title
    	this.workbench.getTitel().setFont(new Font("Arial  Bold", 0, 30));
    	this.workbench.getTitel().setText("Directory Synchronizer");
    	
    	//add Title to Panel
    	this.add(workbench.getTitel());
    }

}
